<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="/css/em.css">
    <script src="/js/axios.min.js"></script>
    <script src="/js/em.js"></script>
</head>
<body>
    <input type="button" value="添加" onclick="$('addDiv').style.visibility = 'visible'">
    <table border="1" width="60%" cellspacing="0">
      <thead>
        <tr><th>姓名</th><th>生日</th><th>工资</th><th>操作</th></tr>
      </thead>
      <tbody id="data"></tbody>
    </table>
    <div id="cutDiv"></div>
    姓名：<input type="text" id="searchName"><br>
    起始日期：<input type="text" id="startDate"><br>
    结束日期：<input type="text" id="endDate"><br>
    <input type="button" value="搜索" onclick="cutByItem(1)">

    <!--添加-->
    <div id="addDiv" class="dialog">
        <div class="content">
            用户名：<input type="text" id="addName"><br>
            生日：<input type="text" id="addBirthday"><br>
            工资：<input type="text" id="addMoney"><br>
            <input type="button" value="添加" onclick="addEm()">
        </div>
    </div>

    <!--修改-->
    <div id="updateDiv" class="dialog">
        <div class="content">
            <input type="hidden" id="updateId">
            用户名：<span id="nameSpan"></span><br>
            生日：<span id="birthdaySpan"></span><br>
            工资：<input type="text" id="updateMoney"><br>
            <input type="button" value="修改" onclick="updateEm()">
        </div>
    </div>
</body>
</html>